/**
 * 流程设计 api 封装
 *
 * @Author:    ADog
 * @Date:      2025-10-06 20:16:41
 * @Copyright  1.0
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const flwDeModelApi = {

  /**
   * 分页查询  @author  ADog
   */
  queryPage : (param) => {
    return postRequest('/flwDeModel/queryPage', param);
  },

  /**
   * 增加  @author  ADog
   */
  add: (param) => {
      return postRequest('/flwDeModel/add', param);
  },

  /**
   * 修改  @author  ADog
   */
  update: (param) => {
      return postRequest('/flwDeModel/update', param);
  },


  /**
   * 删除  @author  ADog
   */
  delete: (id) => {
      return getRequest(`/flwDeModel/delete/${id}`);
  },

  /**
   * 批量删除  @author  ADog
   */
  batchDelete: (idList) => {
      return postRequest('/flwDeModel/batchDelete', idList);
  },

  /**
   * 部署流程  @author  ADog
   */
  // deployFlow:(param) => {
  //   return postRequest('/flwDeModel/deployFlow', param);
  // }
  deployFlow:(id) => {
    return getRequest(`/flwDeModel/deployFlow/${id}`);
  }

};
